package com.pine.app.module.security.oauth.provider;

import com.pine.app.module.security.oauth.provider.token.OAuth2RefreshToken;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author xiaoyuan
 * @create 2020/3/9 10:55
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DefaultOAuth2RefreshToken implements OAuth2RefreshToken {

    private String token;

    private Date expireTime;
    @Override
    public String getValue() {
        return token;
    }

    @Override
    public Date getExpiration() {
        return expireTime;
    }
}
